﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DBManage.aspx.cs" Inherits="tools_DBManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>数据库备份</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="ErrorMsg" runat="server"></asp:Label>
    </div>
    <div>
        <asp:Button ID="btnSave" runat="server" Text="今日备份" OnClick="btnSave_Click" />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="fileName"
            OnRowCommand="GridView1_RowCommand" OnRowDeleting="GridView1_RowDeleting">
            <Columns>
                <asp:BoundField DataField="fileName" HeaderText="文件名称" />
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="restore"
                            Text="恢复" CommandArgument='<%#Eval("fileName") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>